package models

import (
	"gorm.io/gorm"
	"time"
)

// JwtBlacklist JWT黑名单表
type JwtBlacklist struct {
	ID        int64          `json:"id" gorm:"primarykey;comment:主键ID"`
	CreatedAt time.Time      `json:"created_at" gorm:"comment:创建时间"`
	UpdatedAt time.Time      `json:"updated_at" gorm:"comment:更新时间"`
	DeletedAt gorm.DeletedAt `json:"-" gorm:"index;comment:删除时间"`

	Jwt string `json:"jwt" gorm:"type:text;not null;comment:jwt token"`
}

// TableName 指定表名
func (JwtBlacklist) TableName() string {
	return "sys_jwt_blacklists"
}
